## -------------------------------------------------- #
## _Markowitz_JCR_README.txt
## -------------------------------------------------- #

 Date: 2022-MM-DD  

 Authors: Jonathan Markowitz 

 Title: 

 Contact Information: 
   Jonathan Markowitz <jonathnm@usc.edu>

 Copyright (c) 2022, under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
 For more information see: http://creativecommons.org/licenses/by-nc-sa/3.0/us/
 All rights reserved. 
## -------------------------------------------------- #

 
## -------------------------------------------------- #
## README Outline
## -------------------------------------------------- #
 
The data files replicate difference-in-differences estimation and regression analyses using the Arctic Military Activity Events data (main text) and alternative dependent variables (appendix):

Main text
Table 3 - regression results with events per quarter as the dependent variable

Appendix
Table A3 - regression results with new bases as the dependent variable
Table A4 - regression results with new icebreakers as the dependent variable
Table A5 - regression results with new tonnage as the dependent variable 


The data files contain: 

artic_did.R 
Arctic Bases 06-04-18 LL.csv
ArcticDataset_Master_MilitaryActivty12-02-2022  
cincdat.rds
DP_LIVE_09012020234322113.csv
Icebreakers w Country Breakdown 05-31-18 LL.csv
arctic regressions data\p4v2017.xls


## -------------------------------------------------- #
## install R and necessary packages for analysis
## -------------------------------------------------- #

open the .R file using any text or source code editor such as:
	TextEdit, emacs, Aquamacs, notepad++ , or Xpad

set the working directory to the folder containing the data files 

the set working directory command in R is setwd()
	type ?setwd for help documentation 

to set the path type into R: 

setwd("PATH_NAME")

where PATH_NAME is the path to the mail folder

install packages if necessary:
	packages <- c("tidyverse","countrycode", "lubridate", "lmtest", "sandwich", "readxl", "stargazer")
	install.packages(packages)

You should place the folders that contain this file and the additional folders it contains into the R working directory. 

The R working directory is available via the getwd() function in R.

The attached code makes use of the file structure. As long as the folders are in the R working directory the script will find these files and work properly. 

The last version of R and Mac OS-X are:

	R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
	Copyright (C) 2022 The R Foundation for Statistical Computing
	Platform: x86_64-w64-mingw32/x64 (64-bit)


## -------------------------------------------------- #
## Computer recommendations
## -------------------------------------------------- #

All models were estimated on an Apple Macbook using OS version 12.5.1. 


## -------------------------------------------------- #
## data file descriptions and citations
## -------------------------------------------------- #

Arctic Bases 06-04-18 LL.csv
For a description of variables included in this dataset see The Arctic Icebreakers and Ice-Hardened Warships and Bases Codebooks Codebook

ArcticDataset_Master_MilitaryActivty12-02-2022
For a description of variables included in this dataset see The Military Activity Events Codebook

cincdat.rds
For a description of the CINC data see Singer, J. David, Stuart Bremer, and John Stuckey. 1972. “Capability Distribution, Uncertainty, and Major Power War.” In Peace, War, and Numbers., edited by Bruce M. Russett, 19--48. Beverly Hills, CA: Sage.
 
DP_LIVE_09012020234322113.csv
For a description of the OECD data see OECD National Accounts Statistics. 2019. “Quarterly GDP (Indicator)

Icebreakers w Country Breakdown 05-31-18 LL.csv
For a description of variables included in this dataset see The Arctic Icebreakers and Ice-Hardened Warships and Bases Codebooks Codebook

p4v2017
For a description see Polity 4 dataset see Marshall, Monty; Ted Robert Gurr & Keith Jaggers (2014) POLITY IV project: Political regime characteristics and transitions, 1800–2013. Center for Systemic Peace (http://www.systemicpeace.org/polity/polity4.htm). 



## -------------------------------------------------- #
## file folder descriptions
## -------------------------------------------------- #

All tables are saved to html files. 




## -------------------------------------------------- #
## end of file
## -------------------------------------------------- #


